package com.anhry.www.safety.util;


import org.apache.struts2.ServletActionContext;


/**
 * 2012-04-08
 * remark: 公用变量
 * author: anhry
 *
 */
public class Util {
	
	private static Environment env = Environment.getInstance();
	
	public static final String DEPT_CODE = "370500";//系统使用地区，该地区的行政区划代码
	
	/**
	 * 弹出窗口样式
	 */
	public static final String LHGDIALOG = "?skin=iblue";
	
	public static final String SUPER_PWD = "C73CC44BAF04CF232FEC627C04E43968";
	
	/**
	 * 企业用户
	 */
	public static final String SESSION_CORPUSER = "corpuser";
	
	/**
	 * 数据不存在提示句
	 */
	public static final String NOTIP = "你所操作的数据不存在！";
	
	
	public static final String ALLOWTYPES = "image/bmp,image/png,image/gif,image/pjpeg,image/pjpg,image/jpg,image/jpeg,image/JPG,image/GIF,image/PJPG,image/PJPEG,image/PNG,image/BMP";
	
	/**
	 * 图片附件系统的域名（注：根据实际情况进行修改）
	 */
    //public static final String FILE_PATH = "http://localhost:8080/ycFile";
	public static final String FILE_PATH = env.getProperty("upload.pic.base.url");
	
	/**
	 * 附件存储的系统
	 */
	//public static final String SAFETY_FILE = ServletActionContext.getServletContext().getRealPath("").replace("ycCorp", "")+"ycFile";//地址
	public static final String SAFETY_FILE = env.getProperty("upload.files.base.path");//地址
	
	/**
	 * 附件存储的文件夹
	 */
	public static final String FILE_FOLDER = "uploadfile";
	
	/**
	 * 邮件附件文件夹
	 */
	public static final String MAIL_FOLDER = "mail_folder";
	
	/**
	 * 企业图片存储文件夹
	 */
	public static final String CORP = "corp";
	public static final String CORP_RESIZE = "corp/resize";
	
	/**
	 * 协同办公 邮件管理 附件目录 邮件
	 */
	public static final String OA_Mail = "oamail";
	
	/**
	 * 协同办公 邮件管理 附件目录 消息
	 */
	public static final String OA_Notice = "oanotice";
	
	public static final String ZCZB_STANDARD = "zczb_standard";
	
	public static final String ZCZB = "zczb";
	
	public static final String SKIN = "/skin/blue1";//后台样式控制
	
}
